package business

import model.IView

/**
 * 攻击行为接口
 */
interface Attackable:IView{
    val attackPower:Int//攻击者攻击力
    var owner:IView?
    /**
     * 检测2个物体是否发生碰撞
     */
    fun isCollision(x1:Int,y1:Int,w1:Int,h1:Int,x2:Int,y2:Int,w2:Int,h2:Int):Boolean

    /**
     * 通知发生碰撞
     */
    fun notifyAttack(suffer:Sufferable)
}